package org.locker.domain.bo;

import org.locker.domain.Common;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 品牌信息业务对象 lk_common
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Common.class, reverseConvertGenerate = false)
public class CommonBo extends BaseEntity {

    /**
     * 品牌信息
     */
    @NotNull(message = "品牌信息不能为空", groups = { EditGroup.class })
    private Long commonId;

    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandName;

    /**
     * 英文名称
     */
    @NotBlank(message = "英文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String englishName;

    /**
     * 服务电话
     */
    @NotBlank(message = "服务电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String servicePhone;

    /**
     * 品牌描述
     */
    @NotBlank(message = "品牌描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandDesc;

    /**
     * 备注说明
     */
    @NotBlank(message = "备注说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


    /**
     * 营业时间
     */
    private String serviceTime;
}
